package util

import (
	"encoding/json"
	"net/http"
)

func DecodeParams(r *http.Request) map[string]string {
	var res map[string]string
	decoder := json.NewDecoder(r.Body)
	decoder.Decode(&res)
	return res
}
